﻿<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
					xmlns:commonViews="clr-namespace:Albatross.WPF.Common.Views;assembly=Albatross.WPF.Common"
					xmlns:cfg="clr-namespace:Albatross.SSRSViewer.Configuration"
					xmlns:vm="clr-namespace:Albatross.SSRSViewer.ViewModels">

	<vm:ShellMenuViewModel x:Key="shell menu viewmodel" />
	
	<MenuItem x:Key="shell menu item" Header="Reports" ToolTip="SQL Server Reporting Service Reports" DataContext="{StaticResource shell menu viewmodel}" x:Name="Root">
		<MenuItem.Resources>
			<Style TargetType="MenuItem" x:Key="server menuitem">
				<Setter Property="Header" Value="{Binding Name}"/>
				<Setter Property="IsChecked" Value="{Binding Default}"/>
			</Style>
		</MenuItem.Resources>
		<MenuItem Header="Open" Command="{Binding OpenCommand}" CommandParameter="{Binding (commonViews:Attached.ViewService), RelativeSource={RelativeSource Self}}"/>
		<MenuItem Header="Recent Reports" ItemsSource="{Binding RecentReports}" />
		<MenuItem Header="Servers" ItemsSource="{Binding Servers}" ItemContainerStyle="{StaticResource server menuitem}"/>
		<Separator/>
		<MenuItem Header="Setup" Command="{Binding SetupServersCommand}" CommandParameter="{Binding (commonViews:Attached.ViewService), RelativeSource={RelativeSource Self}}"/>
		<MenuItem Header="Options" Command="{Binding OptionsCommand}" CommandParameter="{Binding (commonViews:Attached.ViewService), RelativeSource={RelativeSource Self}}"/>
	</MenuItem>
</ResourceDictionary>